import request from '@/utils/request'

// 查询军检资料
export function armyfileList(data) {
  return request({
    url: '/TArmyExamine/TArmyExamine/selarmyfile',
    method: 'post',
    data
  })
}

// 生成军检资料
export function createFile(id) {
  return request({
    url: '/TArmyExamine/TArmyExamine/armyfile1/' + id,
    method: 'get'
  })
}

// 上传军检资料
export function uploadFile(data) {
  return request({
    url: '/TArmyExamineFile/TArmyExamineFile/upFile',
    method: 'post',
    data
  })
}

// 删除军检资料
export function delFile(id) {
  return request({
    url: '/TArmyExamineFile/TArmyExamineFile/' + id,
    method: 'delete'
  })
}

// 下载军检资料多个合并
export function downloadfiles(ids) {
  return request({
    url: '/TArmyExamine/TArmyExamine/downloadfile/' + ids,
    method: 'get'
  })
}

// 文件类型

export function getFileTypes(params) {
  return request({
    url: '/TFileDictData/TFileDictData/fileoption',
    method: 'get',
    params
  })
}




// 军检资料

export function armyfileList1(data) {
  return request({
    url: '/system/armyPlease/selarmyfile',
    method: 'post',
    data
  })
}

// 生成军检资料
export function createFile1(id) {
  return request({
    url: '/system/armyPlease/armyfile/' + id,
    method: 'get'
  })
}


// 下载军检资料多个合并
export function downloadfiles1(ids) {
  return request({
    url: '/system/armyPlease/downloadfile1/' + ids,
    method: 'get'
  })
}


// 上传军检资料
export function uploadFile1(data) {
  return request({
    url: '/system/armyPlease/upFile',
    method: 'post',
    data
  })
}
// 删除军检资料
export function delFile1(id) {
  return request({
    url: '/system/armyPlease/deleteRemove/' + id,
    method: 'delete'
  })
}
